package cn.sx.guoxd.springboot.controller;


import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

@Api(value = "实验控制器")
@RestController
public class HelloController {
    @ApiOperation(value = "实验方法", notes = "")
    @GetMapping("/hello")
    public String hello(@ApiParam(value = "名字参数" , required=true ) @RequestParam String name)  {
        return "hello world:"+name;
    }
}